package cn.ai.shoes.common.constant;

public final class GolbalConstants {
    //用户常量
    public static final class UserConstants{
        //访客
        public static final String VISITOR = "VISITOR";
        //会员
        public static final String MEMBER = "MEMBER";
        //管理员
        public static final String ADMIN = "ADMIN";
    }
    //操作类型常量
    public static final class OpTypeConstants{
        //新增
        public static final String OP_INSERT = "0";
        //修改
        public static final String OP_UPDATE = "1";
    }
    //角色常量
    public static final class RoleConstants{
        //访客
        public static final String ROLE_VISITOR = "hasRole('ROLE_VISITOR')";
        //会员
        public static final String ROLE_MEMBER = "hasRole('ROLE_MEMBER')";
        //管理员
        public static final String ROLE_ADMIN = "hasRole('ROLE_ADMIN')";
        //会员和管理员
        public static final String ROLE_MEMBER_ADMIN = "hasAnyRole('ROLE_MEMBER','ROLE_ADMIN')";
    }
    public static final class MathConstants{
        public static final double RANDOM_MIN =  0.000001;
        public static final double RANDOM_MAX =  0.010000;
    }
}
